package com.artron.mediaartron.data.config;

import android.content.Context;

import com.artron.mediaartron.data.cache.CacheManager;
import com.artron.mediaartron.data.db.UserManager;
import com.artron.mediaartron.data.greendao.DaoSession;


public class AppProfile {

    private static DaoSession mDaoSession;
    private static Altar mAltar;

    public static void init(Context context) {
        DbConfig dbConfig = DbConfig.newInstance(context);
        mDaoSession = dbConfig.getDaoSession();
        mAltar = Altar.getInstance();
    }

    public static DaoSession getDaoSession() {
        return mDaoSession;
    }

    public static Altar getUserInfo() {
        return mAltar;
    }

    public static UserManager getUserManager() {
        return UserManager.newInstance();
    }

    public static CacheManager getCacheManager() {
        return CacheManager.newInstance();
    }
}
